package com.turing.draw.client.reviewer;

import com.alibaba.fastjson.JSONObject;
import com.turing.common.response.ResponseVO;
import com.turing.draw.vo.out.ForecastVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient( name = "data" ,path = "op")
public interface ReviewerOpClient {

    @PostMapping("saveForecastResult")
    ResponseVO<Object> saveForecastResult(@RequestBody Map<String, List<ForecastVO>> forecastEntity , @RequestParam("taskSn") String taskSn,
                                          @RequestParam("templateId") String templateSn, @RequestParam("parentTaskSn") String parentTaskSn );

    @PostMapping("populateEmptyElements")
    ResponseVO<Object> populateEmptyElements( @RequestParam("parentTaskSn") String taskSn, @RequestParam("templateId") String templateSn );

}
